package com.richapp.launcher.ui.view;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.GridView;


/**
 * Created by wangwei on 15/9/24.
 */
public class MyPlatformGridView extends GridView {


    public MyPlatformGridView(Context context) {
        super(context);
    }

    public MyPlatformGridView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public MyPlatformGridView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

//    @Override
//    protected void measureChild(View child, int parentWidthMeasureSpec, int parentHeightMeasureSpec) {
//        super.measureChild(child, parentWidthMeasureSpec, parentHeightMeasureSpec);
//    }

//    Paint localPaint;

//    @Override
//    protected void dispatchDraw(Canvas canvas) {
//        super.dispatchDraw(canvas);
//        //gridview第一个item
//        View localView1 = getChildAt(0);
//        //每行的item数
//        if (localView1 != null) {
//            localPaint = new Paint();
//            localPaint.setStyle(Paint.Style.FILL);
//            localPaint.setColor(getContext().getResources().getColor(R.color.white));
//            int height = getHeight();
//            canvas.drawLine(localView1.getRight(),localView1.getTop(),localView1.getRight()+1,height,localPaint);
//            canvas.drawLine(localView1.getLeft(),localView1.getBottom(),getWidth(),localView1.getBottom(),localPaint);
//        }
//    }

}

